package gRPC

import (
	"api-getway/global"
	pb "api-getway/pb"
	"fmt"
	"google.golang.org/grpc"
)

func Client() {

	conn, err := grpc.Dial("127.0.0.1:50051", grpc.WithInsecure())
	if err != nil {
		fmt.Printf("连接异常： %s\n", err)
	}
	global.VideoClient = pb.NewVideoClient(conn)
}
